﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace OnlineLearningSystem.Model
{
    /// <summary>
    /// 课程
    /// </summary>
    public class Course:EntityBase
    {
        /// <summary>
        /// 课程名
        /// </summary>
        [Display(Name = "课程名")]
        [StringLength(10)]
        public string courseName { get; set; }

        /// <summary>
        /// 课程简介
        /// </summary>
        [Display(Name = "课程简介")]
        public string courseSynopsis { get; set; }

        /// <summary>
        /// 时长
        /// </summary>
        [Display(Name = "时长")]
        public int times{ get; set; }

        /// <summary>
        /// 课程视频地址
        /// </summary>
        [Display(Name = "课程视频地址")]
        public string video { get; set; }

        /// <summary>
        /// 一个课程对应一个试卷
        /// </summary>
        public virtual Test test { get; set; }

        /// <summary>
        /// 一个课程对应多个批次
        /// </summary>
        public virtual IList<Batch> Batchs { get; set; }
    }
}
